
<template>
    <div class="train-site">
        <div class="train-site-title">培训现场</div>
        <div class="train-site-main">
            <div class="train-site-item" v-for="(item, key) in siteList" :key=key>
                <div class="site-item-img">
                    <img :src="item.img">
                </div>
                <div class="site-item-text">{{item.title}}</div>
            </div>
        </div>
    </div>
</template>

<script>

export default {
  name: 'train_site',
  data() {
    return{
        
    }
  },
  props: {
    siteList: {
        type: Array,
        required: true
    }
  },
}
</script>

<style lang="stylus" scoped>
.train-site{
  background:rgba(255,255,255,1);
  box-shadow:0px 1px 2px 0px rgba(0,0,0,0.1);
  margin-bottom: 20px;  
}
.train-site-title{
    box-sizing: border-box;
    font-size:16px;
    color:rgba(30,30,30,1);
    padding-left: 30px;
    line-height:58px;
    border-bottom: 1px solid rgba(238,238,238,1);
}
.train-site-main{
    padding: 40px 30px;
    font-size: 0;
}
.train-site-item{
    display: inline-block;
    width:216px;
    height:244px;
    margin-right: 123px;
    margin-bottom: 20px;
    .site-item-img{
        width:216px;
        height:162px;
        margin-bottom: 20px;
        img{
            width: 100%;
            height: 100%;
        }
    }
    .site-item-text{
        margin: 0 auto;
        width:176px;
        height:56px;
        font-size:14px;
        font-family:MicrosoftYaHei-Bold;
        font-weight:bold;
        color:rgba(30,30,30,1);
        line-height:28px;
        overflow: hidden;
  
    }
}
.train-site-item:nth-child(3n){
    margin-right: 0;
}
</style>
